<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template basic_cstring_ref</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../boost_process/v2.html#doxygen.cstring__ref_8hpp" title="Header &lt;boost/process/v2/cstring_ref.hpp&gt;">
<link rel="prev" href="structboost_1_1process_1_1v2_1_1bound__launcher.html" title="Struct template bound_launcher">
<link rel="next" href="default__launcher_8hpp_1aa00bccf2edad7fde443ed0b8c6ffbc95.html" title="Type definition default_process_launcher">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1process_1_1v2_1_1bound__launcher.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_process/v2.html#doxygen.cstring__ref_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="default__launcher_8hpp_1aa00bccf2edad7fde443ed0b8c6ffbc95.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template basic_cstring_ref</span></h2>
<p>boost::process::v2::basic_cstring_ref — Small wrapper for a null-terminated string that can be directly passed to C APIS. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../boost_process/v2.html#doxygen.cstring__ref_8hpp" title="Header &lt;boost/process/v2/cstring_ref.hpp&gt;">boost/process/v2/cstring_ref.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special">&lt;</span><span class="identifier">CharT</span><span class="special">&gt;</span> <span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a> <span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">CharT</span>                                            <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a51e012db51fbd882d0854678b9b3aa5f"></a><span class="identifier">value_type</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">Traits</span>                                           <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a1811be7b76acef67fb780cfc58498f40"></a><span class="identifier">traits_type</span><span class="special">;</span>           
  <span class="keyword">typedef</span> <span class="identifier">basic_string_view</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span>          <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a1a512f7725e4a2bd50faf8ec3adf1f66"></a><span class="identifier">string_view_type</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="special">*</span>                                          <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a5f52d33e798878de7e1f9bea816312a2"></a><span class="identifier">pointer</span><span class="special">;</span>               
  <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">*</span>                                    <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a39a2f68f0ee81e8df5cd13b906c746b4"></a><span class="identifier">const_pointer</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">CharT</span> <span class="special">&amp;</span>                                          <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a0d41361c78e8b8fe1952196f8a71347e"></a><span class="identifier">reference</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">CharT</span> <span class="special">&amp;</span>                                    <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac2d9734da97db418c29aef6dcbd1ee36"></a><span class="identifier">const_reference</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">const_pointer</span>                                    <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a438111161c67751cb93757e69d121942"></a><span class="identifier">const_iterator</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">const_iterator</span>                                   <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a7c250200f2250f9e096afb0169282ce3"></a><span class="identifier">iterator</span><span class="special">;</span>              
  <span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">reverse_iterator</span><span class="special">&lt;</span> <span class="identifier">const_iterator</span> <span class="special">&gt;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a15ae337c56eb3c8d2fd063427531f034"></a><span class="identifier">const_reverse_iterator</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">reverse_iterator</span><span class="special">&lt;</span> <span class="identifier">iterator</span> <span class="special">&gt;</span>       <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ab37b1c3f6b7a871bee24afc725be3257"></a><span class="identifier">reverse_iterator</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span>                                      <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a846700d5391b0a582c60de4aa559a2ea"></a><span class="identifier">size_type</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span>                                   <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1af94f7dc76c150aafb9c2acffd0a51d74"></a><span class="identifier">difference_type</span><span class="special">;</span>       

  <span class="comment">// <a class="link" href="boost_interprocess_header_reference/classboost_1_1interprocess_1_1flat__map__index.html#id26-bb">public member functions</a></span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ae7339ab4c5cd9bc65df52f4410032b6f"><span class="identifier">basic_cstring_ref</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1afba01675264c185b5a6039f851f4ef33"><span class="identifier">basic_cstring_ref</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1aed388492e8e75969ddc6bd1c75a5ef7b"><span class="identifier">basic_cstring_ref</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Source<span class="special">,</span> 
           <span class="keyword">typename</span> <span class="special">=</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">remove_pointer</span><span class="special">&lt;</span><span class="keyword">decltype</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">declval</span><span class="special">&lt;</span><span class="identifier">Source</span><span class="special">&gt;</span><span class="special">(</span><span class="special">)</span><span class="special">.</span><span class="identifier">c_str</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> 
           <span class="special">::</span><span class="identifier">type</span><span class="special">&gt;</span> 
    <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a6722efcee0f8d2ef1873a06cae39be9c"><span class="identifier">basic_cstring_ref</span></a><span class="special">(</span><span class="identifier">Source</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">basic_string_view</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">const_pointer</span> 
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac89a16efc72def38292a4f5190f272f9"><span class="identifier">c_str</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a28fd4fd02da5a436904f44287d4b7a12"><span class="keyword">operator</span> <span class="identifier">string_view_type</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1af408772af3d9856dade43d1469d13d71"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1af420fa53ac980dfd372c3168f6cb37c7"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1afabf4f819ed2ac7e00b56fd7224765d7"><span class="identifier">cbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a0e9f2d2dd7bdd7483096544af2a2b0ca"><span class="identifier">cend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1aa69dc840998c38d85754ddeb40984024"><span class="identifier">rbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ae6865ac5360a5dc3d4a5de8f7b1ba543"><span class="identifier">rend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a3edad8fa2494665ff5bfb1694fed87d6"><span class="identifier">crbegin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ad8da659499462c58af92d39deebd849d"><span class="identifier">crend</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a816c1c3b52e63f1acc1643cd25900b0b"><span class="identifier">size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a4746c9b858e2258c5a2be7e7ee06e180"><span class="identifier">length</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a18eb2f435d9ca0420481645a47c1874e"><span class="identifier">max_size</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a74895ab6298e0128c48cc5dcedff5c34"><span class="identifier">empty</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1aec5acfef2b8c540b10c157377acf8250"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a10e7e154333f03aa960ec578f6251d5b"><span class="identifier">at</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a970c041d6e7e9e43b0fcbcccc4ba6d17"><span class="identifier">front</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a4fc6862f869234f4e1552a41e6a40c3d"><span class="identifier">back</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">const_pointer</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a0c0f1d808ab4f06cf59382a1ae37ebfd"><span class="identifier">data</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a3d5bf1aa3cd66c0f45e8d0993497ec96"><span class="identifier">remove_prefix</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1afba6fe84be5bdb02cfcca9f131f501ae"><span class="identifier">swap</span></a><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">size_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a05c03408d8574e3b6ae73d099201aef7"><span class="identifier">copy</span></a><span class="special">(</span><span class="identifier">value_type</span> <span class="special">*</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a3f4365b49e8042c6301b8c2216c282ec"><span class="identifier">substr</span></a><span class="special">(</span><span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">string_view_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ab41646553a1e3f3daaee818caba15807"><span class="identifier">substr</span></a><span class="special">(</span><span class="identifier">size_type</span><span class="special">,</span> <span class="identifier">size_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="keyword">int</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a26aa81e02981990b3fb788ea728915e4"><span class="identifier">compare</span></a><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac98d543be74a5d22cfbfff956ac760cd"><span class="identifier">starts_with</span></a><span class="special">(</span><span class="identifier">string_view_type</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac7d713efa619bf31ebd8df97dd5ffd9c"><span class="identifier">starts_with</span></a><span class="special">(</span><span class="identifier">value_type</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a31fb689a2234e470ca1a2a43c775119a"><span class="identifier">find</span></a><span class="special">(</span><span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ab7fbb332fcb705666eece2a558980a77"><span class="identifier">clear</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">traits_type</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a51ed1c6904da95dfd6308fc8267fe35b"><span class="identifier">to_string</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Allocator<span class="special">&gt;</span> 
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">traits_type</span><span class="special">,</span> <span class="identifier">Allocator</span> <span class="special">&gt;</span> 
    <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a5e7d21027666de5163e464084d63b668"><span class="identifier">to_string</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Allocator</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="boost_interprocess_header_reference/classboost_1_1interprocess_1_1iset__index.html#id27-bb">private static functions</a></span>
  <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">const_pointer</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html#doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a8262a76d0d894ecb016a790102089ab5"><span class="identifier">null_char_</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">size_type</span> <span class="identifier">npos</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.30.5.8.3.3.4"></a><h2>Description</h2>
<p>This ref can only be modified by moving the front pointer. It does not store the size, but can detect values that can directly be passed to system APIs.</p>
<p>It can be constructed from a <code class="computeroutput">char*</code> pointer or any class that has a <code class="computeroutput">c_str()</code> member function, e.g. std::string or boost::static_string. </p>
<div class="refsect2">
<a name="id-1.3.30.5.8.3.3.4.4"></a><h3>
<a name="id26-bb"></a><code class="computeroutput">basic_cstring_ref</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ae7339ab4c5cd9bc65df52f4410032b6f"></a><span class="identifier">basic_cstring_ref</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1afba01675264c185b5a6039f851f4ef33"></a><span class="identifier">basic_cstring_ref</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">nullptr_t</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1aed388492e8e75969ddc6bd1c75a5ef7b"></a><span class="identifier">basic_cstring_ref</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">*</span> s<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Source<span class="special">,</span> 
         <span class="keyword">typename</span> <span class="special">=</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">remove_pointer</span><span class="special">&lt;</span><span class="keyword">decltype</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">declval</span><span class="special">&lt;</span><span class="identifier">Source</span><span class="special">&gt;</span><span class="special">(</span><span class="special">)</span><span class="special">.</span><span class="identifier">c_str</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> 
         <span class="special">::</span><span class="identifier">type</span><span class="special">&gt;</span> 
  <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a6722efcee0f8d2ef1873a06cae39be9c"></a><span class="identifier">basic_cstring_ref</span><span class="special">(</span><span class="identifier">Source</span> <span class="special">&amp;&amp;</span> src<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">basic_string_view</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">const_pointer</span> 
<a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac89a16efc72def38292a4f5190f272f9"></a><span class="identifier">c_str</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a28fd4fd02da5a436904f44287d4b7a12"></a><span class="keyword">operator</span> <span class="identifier">string_view_type</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1af408772af3d9856dade43d1469d13d71"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1af420fa53ac980dfd372c3168f6cb37c7"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1afabf4f819ed2ac7e00b56fd7224765d7"></a><span class="identifier">cbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a0e9f2d2dd7bdd7483096544af2a2b0ca"></a><span class="identifier">cend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1aa69dc840998c38d85754ddeb40984024"></a><span class="identifier">rbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ae6865ac5360a5dc3d4a5de8f7b1ba543"></a><span class="identifier">rend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a3edad8fa2494665ff5bfb1694fed87d6"></a><span class="identifier">crbegin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reverse_iterator</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ad8da659499462c58af92d39deebd849d"></a><span class="identifier">crend</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a816c1c3b52e63f1acc1643cd25900b0b"></a><span class="identifier">size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a4746c9b858e2258c5a2be7e7ee06e180"></a><span class="identifier">length</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a18eb2f435d9ca0420481645a47c1874e"></a><span class="identifier">max_size</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="keyword">bool</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a74895ab6298e0128c48cc5dcedff5c34"></a><span class="identifier">empty</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1aec5acfef2b8c540b10c157377acf8250"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a10e7e154333f03aa960ec578f6251d5b"></a><span class="identifier">at</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a970c041d6e7e9e43b0fcbcccc4ba6d17"></a><span class="identifier">front</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_reference</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a4fc6862f869234f4e1552a41e6a40c3d"></a><span class="identifier">back</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">const_pointer</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a0c0f1d808ab4f06cf59382a1ae37ebfd"></a><span class="identifier">data</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a3d5bf1aa3cd66c0f45e8d0993497ec96"></a><span class="identifier">remove_prefix</span><span class="special">(</span><span class="identifier">size_type</span> n<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1afba6fe84be5bdb02cfcca9f131f501ae"></a><span class="identifier">swap</span><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a> <span class="special">&amp;</span> s<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">size_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a05c03408d8574e3b6ae73d099201aef7"></a><span class="identifier">copy</span><span class="special">(</span><span class="identifier">value_type</span> <span class="special">*</span> s<span class="special">,</span> <span class="identifier">size_type</span> n<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a3f4365b49e8042c6301b8c2216c282ec"></a><span class="identifier">substr</span><span class="special">(</span><span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">string_view_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ab41646553a1e3f3daaee818caba15807"></a><span class="identifier">substr</span><span class="special">(</span><span class="identifier">size_type</span> pos<span class="special">,</span> <span class="identifier">size_type</span> length<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="keyword">int</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a26aa81e02981990b3fb788ea728915e4"></a><span class="identifier">compare</span><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__cstring__ref.html" title="Struct template basic_cstring_ref">basic_cstring_ref</a> x<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="keyword">bool</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac98d543be74a5d22cfbfff956ac760cd"></a><span class="identifier">starts_with</span><span class="special">(</span><span class="identifier">string_view_type</span> x<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="keyword">bool</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ac7d713efa619bf31ebd8df97dd5ffd9c"></a><span class="identifier">starts_with</span><span class="special">(</span><span class="identifier">value_type</span> x<span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">constexpr</span> <span class="identifier">size_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a31fb689a2234e470ca1a2a43c775119a"></a><span class="identifier">find</span><span class="special">(</span><span class="identifier">CharT</span> ch<span class="special">,</span> <span class="identifier">size_type</span> pos <span class="special">=</span> <span class="number">0</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1ab7fbb332fcb705666eece2a558980a77"></a><span class="identifier">clear</span><span class="special">(</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">traits_type</span> <span class="special">&gt;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a51ed1c6904da95dfd6308fc8267fe35b"></a><span class="identifier">to_string</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Allocator<span class="special">&gt;</span> 
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">traits_type</span><span class="special">,</span> <span class="identifier">Allocator</span> <span class="special">&gt;</span> 
  <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a5e7d21027666de5163e464084d63b668"></a><span class="identifier">to_string</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Allocator</span> <span class="special">&amp;</span> a<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.30.5.8.3.3.4.5"></a><h3>
<a name="id27-bb"></a><code class="computeroutput">basic_cstring_ref</code> private static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">const_pointer</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__cstring__ref_1a8262a76d0d894ecb016a790102089ab5"></a><span class="identifier">null_char_</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2006-2012 Julio M. Merino Vidal, Ilya Sokolov,
      Felipe Tanus, Jeff Flinn, Boris Schaeling<br>Copyright © 2016 Klemens D. Morgenstern<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1process_1_1v2_1_1bound__launcher.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_process/v2.html#doxygen.cstring__ref_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="default__launcher_8hpp_1aa00bccf2edad7fde443ed0b8c6ffbc95.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
